Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

486
Views
discord.js - TypeError [INVALID_TYPE]: el parámetro proporcionado no es un usuario ni un rol

Si presiono el botón, ocurre el siguiente error: TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role. Sin embargo, también puedo poner una identificación sólida allí y este error todavía ocurre.

 button.guild.channels.create('cs', { type: "text", parent_id: '802172599836213258', permissionOverwrites: [ { id: button.guild.roles.everyone, deny: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] }, { id: button.clicker.id, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] } ] })
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El único problema posible que puedo ver es button.guild.roles.everyone , no hay propiedad de todos en button.guild.roles , la identificación de todos es la identificación del gremio, por lo que si reemplaza button.guild.roles.everyone con button.guild.id , debería solucionar el problema.

 button.guild.channels.create('cs', { type: "text", parent_id: '802172599836213258', permissionOverwrites: [ { id: button.guild.id, deny: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] }, { id: button.clicker.id, allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] } ] })
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!